package com.sg.model.base.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import lombok.experimental.Accessors;

import com.sg.framework.common.po.BaseEntity;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;
import java.io.Serial;
import java.util.Date;

/**
 * 组织架构系统对接表
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_org_depart_source_data")   // 1-3-17对接部门源数据表
public class DepartSourceData implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 党团主管名称
     */
    @TableField(value = "party_and_youth_director_name")
    @Schema(description = "党团主管名称")
    private String partyAndYouthDirectorName;

    /**
     * 对接部门源数据ID
     */
    @TableId(value = "dept_source_data_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "deptSourceDataId不能为空")
    private String deptSourceDataId;

    /**
     * 部门编号
     */
    @TableField(value = "dept_number")
    @NotNull(message = "部门编号不能为空")
    @Schema(description = "部门编号")
    private String deptNumber;

    /**
     * 部门名称（中文）
     */
    @TableField(value = "dept_name")
    @NotNull(message = "部门名称（中文）不能为空")
    @Schema(description = "部门名称（中文）")
    private String deptName;

    /**
     * 部门名称（英文）
     */
    @TableField(value = "dept_en_name")
    @Schema(description = "部门名称（英文）")
    private String deptEnName;

    /**
     * 部门简称
     */
    @TableField(value = "dept_short_name")
    @Schema(description = "部门简称")
    private String deptShortName;

    /**
     * 上级部门编号
     */
    @TableField(value = "parent_dept_number")
    @Schema(description = "上级部门编号")
    private String parentDeptNumber;

    /**
     * 上级部门名称（中文）
     */
    @TableField(value = "parent_dept_name")
    @Schema(description = "上级部门名称（中文）")
    private String parentDeptName;

    /**
     * 部门类型名称
     */
    @TableField(value = "type_dictionary_name")
    @Schema(description = "部门类型名称")
    private String typeDictionaryName;

    /**
     * 行政主管名称
     */
    @TableField(value = "director_name")
    @Schema(description = "行政主管名称")
    private String directorName;

    /**
     * 分管领导工号
     */
    @TableField(value = "dept_leader_code")
    @Schema(description = "分管领导工号")
    private String deptLeaderCode;

    /**
     * 分管领导姓名
     */
    @TableField(value = "dept_leader_name")
    @Schema(description = "分管领导姓名")
    private String deptLeaderName;

    /**
     * 行政主管工号
     */
    @TableField(value = "director_code")
    @Schema(description = "行政主管工号")
    private String directorCode;

    /**
     * 党团主管工号
     */
    @TableField(value = "party_and_youth_director_code")
    @Schema(description = "党团主管工号")
    private String partyAndYouthDirectorCode;

    /**
     * 排序
     */
    @TableField(value = "order_number")
    @Schema(description = "排序")
    private Long orderNumber;

    /**
     * 数据是否完整 TRUE:是 FALSE:否
     */
    @TableField(value = "data_is_complete")
    @NotNull(message = "数据是否完整不能为空")
    @Schema(description = "数据是否完整")
    private String dataIsComplete;

    /**
     * 关联项目ID
     */
    @TableField(value = "project_id")
    @NotNull(message = "关联项目ID不能为空")
    @Schema(description = "关联项目ID")
    private String projectId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;

    /**
     * 是否未来 TRUE:是 FALSE:否
     */
    @TableField(value = "is_editing")
    @NotNull(message = "是否未来不能为空")
    @Schema(description = "是否未来")
    private String isEditing;

    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;

    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;

    /**
     * 存档人就职记录ID
     */
    @TableField(value = "archive_induction_id")
    @Schema(description = "存档人就职记录ID")
    private String archiveInductionId;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;

    /**
     * 存档时间
     */
    @TableField(value = "archive_time")
    @Schema(description = "存档时间")
    private Date archiveTime;

    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
